<div class="zs-body" data-ng-init="formInit('gzryda', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{id:0}
    }) && loadData('gzryda');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">岗位职责</a>
            <i class="right-arr"></i>
            <a href="javascript:;">人事档案</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="新建" ng-click="addRow('gzryda') && openWindow('edit');" />
            <input type="button" class="zs-btn orange" value="编辑" ng-click="editRow('gzryda', gzryda.sRows[0]) && openWindow('edit')" />
            <input type="button" class="zs-btn orange" value="删除 " ng-click="delEntitys('gzryda')" />
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
            <div class="tool item" style="margin-left:6px;">
                <!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="ID" ng-model="gzryda.queryObject['id']"/>
                </span>-->
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="姓名" ng-model="gzryda.queryObject['xingming']" />
                </span>
                <!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="性别" ng-model="gzryda.queryObject['xingbie']"/>
                </span>-->
                <!--	<span class="search-warpper">
                    <ag-Datebox id='qi_chushengrq'  showcurday='true'
                       		class="zs-input" style="width:175px;height: 28px"
                       		ng-model="gzryda.queryObject['chushengrq']" >
				   	</ag-Datebox>
                </span>-->
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="身份证证号" ng-model="gzryda.queryObject['shengfenz']" />
                </span>
                <!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="民族" ng-model="gzryda.queryObject['mingzu']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="籍贯" ng-model="gzryda.queryObject['jiguang']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="政治面貌" ng-model="gzryda.queryObject['zhengzhimm']"/>
                </span>
				<span class="search-warpper">
                    <ag-Datebox id='qi_gongzuosj'  showcurday='true'
                       		class="zs-input" style="width:175px;height: 28px"
                       		ng-model="gzryda.queryObject['gongzuosj']" >
				   	</ag-Datebox>
                </span>-->
                <!-- <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="学历" ng-model="gzryda.queryObject['xueli']" />
                </span> -->
                <!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="毕业学校" ng-model="gzryda.queryObject['biyexx']"/>
                </span>
				<span class="search-warpper">
                    <ag-Datebox id='qi_biyesj'  showcurday='true'
                       		class="zs-input" style="width:175px;height: 28px"
                       		ng-model="gzryda.queryObject['biyesj']" >
				   	</ag-Datebox>
                </span>-->
                <!-- <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="专业" ng-model="gzryda.queryObject['zhuangye']" />
                </span> -->
                <!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="行政职务" ng-model="gzryda.queryObject['xingzhengzw']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="技术职务" ng-model="gzryda.queryObject['jishuzw']"/>
                </span>-->
                <!-- <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="部门" ng-model="gzryda.queryObject['bumen']" />
                </span>
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="职务" ng-model="gzryda.queryObject['zhiwu']" />
                </span> -->
                <!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="岗位类型" ng-model="gzryda.queryObject['gagnweilx']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="备注" ng-model="gzryda.queryObject['beizhu']"/>
                </span>-->
            </div>
            <div class="operation item" style="margin-top:7px;">
                <input type="button" class="zs-btn orange" value="查询" ng-click="loadData('gzryda')" />
                <!--<a class="ope-1" ng-click="loadData('gzryda')"></a>
                <a class="ope-2"></a>-->
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox" ng-click="selectAll('gzryda','allCheckbox');" />
                                    </th>
                                    <th>姓名</th>
                                    <th>性别</th>
                                    <th>出生日期</th>
                                    <th>学历</th>
                                    <th>专业</th>
                                    <th>部门</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gzryda.datas">
                                    <td>
                                        <input type="checkbox" ng-click="selectRow('gzryda',r);" ng-model="r.selected" />
                                    </td>
                                    <!--  姓名 -->
                                    <td>
                                        <a ng-click="editRow('gzryda',r) && openWindow('edit');">
                                            <label ng-bind="r.xingming"></label>
                                        </a>
                                    </td>
                                    <!--  性别 -->
                                    <td>
                                        <a ng-click="editRow('gzryda',r) && openWindow('edit');">
                                            <label ng-bind="r.xingbieName"></label>
                                        </a>
                                    </td>
                                    <!--  出生日期 -->
                                    <td>
                                        <a ng-click="editRow('gzryda',r) && openWindow('edit');">
                                            <label ng-bind="r.chushengrq | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                    </td>
                                    <!--  学历 -->
                                    <td>
                                        <a ng-click="editRow('gzryda',r) && openWindow('edit');">
                                            <label ng-bind="r.xueliName"></label>
                                        </a>
                                    </td>
                                    <td>
                                        <a ng-click="editRow('gzryda',r) && openWindow('edit');">
                                            <label ng-bind="r.zhuangye"></label>
                                        </a>
                                    </td>
                                    <!--  部门 -->
                                    <td>
                                        <a ng-click="editRow('gzryda',r) && openWindow('edit');">
                                            <label ng-bind="r.bumenName"></label>
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gzryda'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="人事档案编辑" width='800px' height='400px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
                            <tr>
                                <td class="text" width="20%">姓名</td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzryda.editRow.xingming" class="zs-input" />
                                </td>
                                <td class="text" width="20%">部门</td>
                                <td class="left" width="30%">
                                    <ag-Combobox class="zs-input" style="width:226px;height:28px;" fn='dptEdit' para="{sn:'department',
                                        nfn:'posiEdit',
                    							foreignField:'organizationId',
												defaultQueryObject:{valid:true},
												orderObject:{order:0}}"
                                        ng-model="gzryda.editRow.bumen" text-Value="gzryda.editRow.bumenName" />
                                    <!--<input type="text" ng-model="gzryda.editRow.bumen" class="zs-input" />-->
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">岗位</td>
                                <td class="left" width="30%">
                                    <ag-Combobox class="zs-input" style="width:226px;height:28px;" fn='postEdit' para="{sn:'operatingPost',
                                                foreignField:'organizationId',
                                                defaultQueryObject:{valid:true},
                                                orderObject:{order:0}}"
                                        ng-model="gzryda.editRow.gagnweilx" text-Value="gzryda.editRow.gagnweilxName" />
                                </td>
                                <td class="text" width="20%">职务</td>
                                <td class="left" width="30%">
                                    <ag-Combobox class="zs-input" style="width:226px;height:28px;" fn='posiEdit' para="{sn:'position',
                                                pfn:'dptEdit',
                                                foreignField:'departmentId',
                                                defaultQueryObject:{valid:true},
                                                orderObject:{order:0}}"
                                        ng-model="gzryda.editRow.zhiwu" text-Value="gzryda.editRow.zhiwuName" />
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">行政职务</td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzryda.editRow.xingzhengzw" class="zs-input" />
                                </td>
                                <td class="text" width="20%">技术职务</td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzryda.editRow.jishuzw" class="zs-input" />
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">性别</td>
                                <td class="left" width="30%">
                                    <ag-Combobox style="width:226px;height:28px;" para="{	uDictionary:true,
                                                editable:true,
                                                dictionary:'p_sex'}"
                                        ng-model="gzryda.editRow.xingbie" text-Value="gzryda.editRow.xingbieName" />
                                </td>
                                <td class="text" width="20%">出生日期</td>
                                <td class="left" width="30%">
                                    <ag-Datebox id='fi_chushengrq' showcurday='true' class="zs-input" style="width:226px;height: 28px"
                                        ng-model="gzryda.editRow.chushengrq">
                                    </ag-Datebox>
                                </td>

                            </tr>
                            <tr>
                                <td class="text" width="20%">身份证证号</td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzryda.editRow.shengfenz" class="zs-input" />
                                </td>
                                <td class="text" width="20%">民族</td>
                                <td class="left" width="30%">
                                    <ag-Combobox style="width:226px;height:28px;" para="{	uDictionary:true,
                                        		editable:true,
                                        		dictionary:'p_minzu'}"
                                        ng-model="gzryda.editRow.mingzu" text-Value="gzryda.editRow.mingzuName" />
                                </td>

                            </tr>
                            <tr>
                                <td class="text" width="20%">籍贯</td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzryda.editRow.jiguang" class="zs-input" />
                                </td>
                                <td class="text" width="20%">政治面貌</td>
                                <td class="left" width="30%">
                                    <ag-Combobox style="width:226px;height:28px;" para="{	uDictionary:true,
                                        		editable:true,
                                        		dictionary:'p_zzmm'}"
                                        ng-model="gzryda.editRow.zhengzhimm" text-Value="gzryda.editRow.zhengzhimmName" />
                                </td>

                            </tr>
                            <tr>
                                <td class="text" width="20%">工作时间</td>
                                <td class="left" width="30%">
                                    <ag-Datebox id='fi_gongzuosj' showcurday='true' class="zs-input" style="width:226px;height: 28px"
                                        ng-model="gzryda.editRow.gongzuosj">
                                    </ag-Datebox>
                                </td>
                                <td class="text" width="20%">毕业学校</td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzryda.editRow.biyexx" class="zs-input" />
                                </td>

                            </tr>
                            <tr>
                                <td class="text" width="20%">学历</td>
                                <td class="left" width="30%">
                                    <ag-Combobox style="width:226px;height:28px;" para="{	uDictionary:true,
                                                        editable:true,
                                                        dictionary:'p_xueli'}"
                                        ng-model="gzryda.editRow.xueli" text-Value="gzryda.editRow.xueliName" />
                                </td>
                                <td class="text" width="20%">毕业时间</td>
                                <td class="left" width="30%">
                                    <ag-Datebox id='fi_biyesj' showcurday='true' class="zs-input" style="width:226px;height: 28px"
                                        ng-model="gzryda.editRow.biyesj">
                                    </ag-Datebox>
                                </td>

                            </tr>
                            <tr>
                                <td class="text" width="20%">专业</td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzryda.editRow.zhuangye" class="zs-input" />
                                </td>
                                <td class="text" width="20%">备注</td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzryda.editRow.beizhu" class="zs-input" />
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red" ng-click="formValidate(form) && save('gzryda', gzryda.editRow, saveCloseWindow)" />
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>